package com.ruoyi.rgpp.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.rgpp.mapper.JmrypjyzdStudentsMapper;
import com.ruoyi.rgpp.domain.JmrypjyzdStudents;
import com.ruoyi.rgpp.service.IJmrypjyzdStudentsService;
import com.ruoyi.common.core.text.Convert;

/**
 * 学生简历信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-06-15
 */
@Service
public class JmrypjyzdStudentsServiceImpl implements IJmrypjyzdStudentsService 
{
    @Autowired
    private JmrypjyzdStudentsMapper jmrypjyzdStudentsMapper;

    /**
     * 查询学生简历信息
     * 
     * @param card 学生简历信息主键
     * @return 学生简历信息
     */
    @Override
    public JmrypjyzdStudents selectJmrypjyzdStudentsByCard(String card)
    {
        return jmrypjyzdStudentsMapper.selectJmrypjyzdStudentsByCard(card);
    }

    /**
     * 查询学生简历信息列表
     * 
     * @param jmrypjyzdStudents 学生简历信息
     * @return 学生简历信息
     */
    @Override
    public List<JmrypjyzdStudents> selectJmrypjyzdStudentsList(JmrypjyzdStudents jmrypjyzdStudents)
    {
        return jmrypjyzdStudentsMapper.selectJmrypjyzdStudentsList(jmrypjyzdStudents);
    }

    /**
     * 新增学生简历信息
     * 
     * @param jmrypjyzdStudents 学生简历信息
     * @return 结果
     */
    @Override
    public int insertJmrypjyzdStudents(JmrypjyzdStudents jmrypjyzdStudents)
    {
        return jmrypjyzdStudentsMapper.insertJmrypjyzdStudents(jmrypjyzdStudents);
    }

    /**
     * 修改学生简历信息
     * 
     * @param jmrypjyzdStudents 学生简历信息
     * @return 结果
     */
    @Override
    public int updateJmrypjyzdStudents(JmrypjyzdStudents jmrypjyzdStudents)
    {
        return jmrypjyzdStudentsMapper.updateJmrypjyzdStudents(jmrypjyzdStudents);
    }

    /**
     * 批量删除学生简历信息
     * 
     * @param cards 需要删除的学生简历信息主键
     * @return 结果
     */
    @Override
    public int deleteJmrypjyzdStudentsByCards(String cards)
    {
        return jmrypjyzdStudentsMapper.deleteJmrypjyzdStudentsByCards(Convert.toStrArray(cards));
    }

    /**
     * 删除学生简历信息信息
     * 
     * @param card 学生简历信息主键
     * @return 结果
     */
    @Override
    public int deleteJmrypjyzdStudentsByCard(String card)
    {
        return jmrypjyzdStudentsMapper.deleteJmrypjyzdStudentsByCard(card);
    }
}
